package com.twu.biblioteca;

public class Book {
    String title;
    boolean avail;

    public Book(String title, boolean avail) {
        this.title = title;
        this.avail = avail;
    }

    public String toString(){
        return title + " ("+ isAvailable() +")";
    }

    public String isAvailable() {
        return (avail ? "available" : "reserved");
    }
}
